package cn.yh.hospitalappointmentsystemdemo.mapping;

import cn.yh.hospitalappointmentsystemdemo.domain.entity.PreAppointments;
import cn.yh.hospitalappointmentsystemdemo.domain.entity.RegistrationOrders;
import cn.yh.hospitalappointmentsystemdemo.domain.query.OrdersCreate;
import cn.yh.hospitalappointmentsystemdemo.domain.vo.PreAppointmentVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

@Mapper
public interface OrdersMapping {
    OrdersMapping INSTANCE = Mappers.getMapper(OrdersMapping.class);


//    @Mappings({
//            @Mapping(target = "patientId" , source = "patientId")
//            @Mapping(target = "patientId" , source = "patientId"),
//            @Mapping(target = "patientId" , source = "patientId"),
//            @Mapping(target = "patientId" , source = "patientId"),
//            @Mapping(target = "patientId" , source = "patientId")
//    })
    RegistrationOrders toCreate(OrdersCreate ordersQuery);

}
